import request from '@/utils/request'

// 查询项目评审记录列表
export function listReviews(query) {
  return request({
    url: '/system/reviews/list',
    method: 'get',
    params: query
  })
}

// 查询项目评审记录详细
export function getReviews(id) {
  return request({
    url: '/system/reviews/' + id,
    method: 'get'
  })
}

// 新增项目评审记录
export function addReviews(data) {
  return request({
    url: '/system/reviews',
    method: 'post',
    data: data
  })
}

// 修改项目评审记录
export function updateReviews(data) {
  return request({
    url: '/system/reviews',
    method: 'put',
    data: data
  })
}

// 删除项目评审记录
export function delReviews(id) {
  return request({
    url: '/system/reviews/' + id,
    method: 'delete'
  })
}


// 
export function pass(data) {
  return request({
    url: '/system/reviews/pass',
    method: 'post',
    data: data
  })
}

export function reject(data) {
  return request({
    url: '/system/reviews/reject',
    method: 'post',
    data: data
  })
}

export function getReason(data) {
  return request({
    url: '/system/reviews/reason',
    method: 'post',
    data: data
  })
}